/**
 * Created by fate on 17/4/13.
 */
var http = require("http");
var fs  =require("fs");

var server = http.creaServer(function (req,res) {
    if(req.url.startsWith("/login")){
        res.setHeadr("Content-Type","4_11/html");
        if (req.url.indexof("?")>-1){
            res.end("<h1>登录成功! <h1>");
        }else {
            fs.readFile(".4_11.html",function (err,data) {
                res.end(data);

            })
        }
    }

})